package cn.chair.model.admin;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import life.innovation.model.BaseModel;
import life.innovation.model.Page;
import life.innovation.util.JsonDateDeserializer;
import life.innovation.util.JsonDateSerializer;

import java.util.Date;
import java.util.List;

public class MerchantListResp extends BaseModel{

    private Page pagination;

    private List<MerchantList> list;

    public Page getPagination() {
        return pagination;
    }

    public void setPagination(Page pagination) {
        this.pagination = pagination;
    }

    public List<MerchantList> getList() {
        return list;
    }

    public void setList(List<MerchantList> list) {
        this.list = list;
    }

    public static class MerchantList extends BaseModel{
        private int merId;
        private String merName;
        private String address;
        @JsonSerialize(using = JsonDateSerializer.class)
        @JsonDeserialize(using = JsonDateDeserializer.class)
        private Date createdTime;
        private String linkMan;
        private String phone;
        private int status;
        private int chairCount;
        private int brokenCount;
        private int packageGroupId;

        public int getPackageGroupId() {
            return packageGroupId;
        }

        public void setPackageGroupId(int packageGroupId) {
            this.packageGroupId = packageGroupId;
        }

        public int getChairCount() {
            return chairCount;
        }

        public void setChairCount(int chairCount) {
            this.chairCount = chairCount;
        }

        public int getMerId() {
            return merId;
        }

        public void setMerId(int merId) {
            this.merId = merId;
        }

        public String getMerName() {
            return merName;
        }

        public void setMerName(String merName) {
            this.merName = merName;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public Date getCreatedTime() {
            return createdTime;
        }

        public void setCreatedTime(Date createdTime) {
            this.createdTime = createdTime;
        }

        public String getLinkMan() {
            return linkMan;
        }

        public void setLinkMan(String linkMan) {
            this.linkMan = linkMan;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getBrokenCount() {
            return brokenCount;
        }

        public void setBrokenCount(int brokenCount) {
            this.brokenCount = brokenCount;
        }
    }
}
